﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Strategy.Calculation
{
    public class Context
    {
        private int _left = 0;
        private int _right = 0;
        private AbstractCalculation _calculation = null;
        public Context(int left,int right,AbstractCalculation calculation)
        {
            _left = left;
            _right = right;
            _calculation = calculation;
        }

        public int Action()
        {
            return this._calculation.Calculation(_left, _right);
        }
    }
}
